package com.wofish.member.domain;


import com.wofish.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 会员登录账号表 wf_b2c_member_account
 * 
 * @author wofish
 * @date 2019-04-21
 */
public class MemberAccount extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 会员ID */
	private Long memberId;
	/** 登录账号 */
	private String loginAccount;
	/** 账户类型，1-用户名，2-手机号，3-邮箱 */
	private Integer loginType;
	/** 登录密码 */
	private String loginPassword;
	/** 密码加密的盐值 */
	private String salt;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** 生效标记，0-生效，1-不生效 */
	private Integer disabled;

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getMemberId() {
		return memberId;
	}
	public void setLoginAccount(String loginAccount) {
		this.loginAccount = loginAccount;
	}

	public String getLoginAccount() {
		return loginAccount;
	}
	public void setLoginType(Integer loginType) {
		this.loginType = loginType;
	}

	public Integer getLoginType() {
		return loginType;
	}
	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	public String getLoginPassword() {
		return loginPassword;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getSalt() {
		return salt;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}
	public void setDisabled(Integer disabled) {
		this.disabled = disabled;
	}

	public Integer getDisabled() {
		return disabled;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("loginAccount", getLoginAccount())
            .append("loginType", getLoginType())
            .append("loginPassword", getLoginPassword())
            .append("salt", getSalt())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("disabled", getDisabled())
            .toString();
    }
}
